package org.dylan.evernote;

import java.util.Date;

import com.evernote.edam.error.EDAMNotFoundException;
import com.evernote.edam.error.EDAMSystemException;
import com.evernote.edam.error.EDAMUserException;
import com.evernote.edam.type.Tag;
import com.evernote.thrift.TException;

/**
 *
 *
 * @Copyright: Copyright (c) 2013 FFCS All Rights Reserved 
 * @Company: 北京福富软件有限公司 
 * @author 陈作朋 Oct 26, 2013
 * @version 1.00.00
 * @history:
 * 
 */
public class CreateTag {

	public static void createTag() throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException{
		EDAMContext context=new EDAMContext();
		Tag tag=new Tag();
		tag.setName("aaaa");
		tag.setParentGuid("dd48deaf-81c7-42c7-8dba-84950ff9a864");
		Tag createdTag=context.getNoteStore().createTag(tag);
		System.out.println("Tag guid:"+createdTag.getGuid());
	}
	
	public static void main(String[] args) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException {
		createTag();
	}

}
